package com.example.myapplication.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class TimeUtil {
    public static String getTime(){
        Calendar calendar= Calendar.getInstance();
        SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return  dateFormat.format(calendar.getTime());
    }
}
